﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using System.Web.Mvc.Html;

using ERPStore.Web.Routing;
using ERPStore.Extensions;

namespace ERPStore.Web.Html
{
    public static class Extensions
    {
        public static string ExportOrderCartToPdfHref(this UrlHelper helper, string cartCode)
        {
            return helper.RouteERPStoreUrl("ExportReport", new { action = "OrderCartReport", id = cartCode , format = "PDF" });
        }

        public static string ExportOrderCartToExcelHref(this UrlHelper helper, string cartCode)
        {
            return helper.RouteERPStoreUrl("ExportReport", new { action = "OrderCartReport", id = cartCode, format = "EXCEL" });
        }

        public static string ExportOrderCartToWordHref(this UrlHelper helper, string cartCode)
        {
            return helper.RouteERPStoreUrl("ExportReport", new { action = "OrderCartReport", id = cartCode, format = "WORD" });
        }
    }
}
